<?php
$path = $_SERVER['DOCUMENT_ROOT'];
require_once "$path/public/Jobs.php";
include "$path/view/head.php";
$jobs = new Jobs();
$currentPage = empty($_GET["currentPage"]) ? 1 : $_GET["currentPage"];
$pageSize = empty($_GET["pageSize"]) ? 20 : $_GET["pageSize"];
$jobs->findByPage($currentPage,$pageSize);
$type = !empty($_GET["type"]) ? "type=" . $_GET["type"] : "";
$pid = !empty($_GET["pid"]) ? "pid=" . $_GET["pid"] : "";
$id = !empty($_GET["id"]) ? "id=" . $_GET["id"] : "";
include $_SERVER["DOCUMENT_ROOT"] . "/view/banner.php";
?>

<?php include "$path/view/left.php"; ?>
